<template>
	<page-body>
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center yhdzg_flex_0_higd"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub yhdzg_fd0_0_higd'>
					<view class='flex flex-wrap align-center yhdzg_fd0_0_c0_higd' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  yhdzg_fd0_0_c0_c0_higd'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='yhdzg_fd0_0_c1_c0_higd'>{{title}}</text>
					</view>
					<view class='flex flex-wrap align-center justify-end yhdzg_fd0_0_c0_higd' >
					
						<!-- #ifndef MP-WEIXIN -->
						<text  @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pageyhpc/yhpc/yhpcx/yhpcx?aid=${ids}&title=${title}`" class='yhdzg_fd0_0_c2_c0_higd'>{{$t('详情')}}</text>
						<!-- #endif -->
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction align-stretch benben-flex-layout yhdzg_flex_1_higd">
				<view class='flex flex-wrap align-center yhdzg_fd1_0_higd'>
					<view class='flex flex-wrap align-center yhdzg_fd1_0_c0_higd'>
						<text>{{$t('检查时间')}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='yhdzg_fd1_0_c1_c0_higd'>{{info.list.pcsj}}</text>
					</view>
					<view class='flex flex-wrap align-center yhdzg_fd1_0_c2_higd'>
						<text class='yhdzg_fd1_0_c2_c0_higd'>{{$t('待整改')}}</text>
					</view>
				</view>
				<view class='flex flex-wrap align-center yhdzg_fd1_0_higd'>
					<view class='flex flex-wrap align-center yhdzg_fd1_0_c0_higd'>
						<text>{{$t('检查人')}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='yhdzg_fd1_0_c1_c0_higd'>{{info.list.user_real_name}}</text>
					</view>
				</view>
				<view class='flex flex-wrap align-center yhdzg_fd1_0_higd'>
					<view class='flex flex-wrap align-center yhdzg_fd1_0_c0_higd'>
						<text>{{$t('评分分值')}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='yhdzg_fd1_0_c1_c0_higd'>{{info.list.pf}}</text>
					</view>
				</view>
				<view class='flex align-stretch yhdzg_fd1_0_higd'>
					<view class='flex align-start yhdzg_fd1_0_c0_higd'>
						<text>{{$t('问题描述')}}</text>
					</view>
					<view class='flex align-stretch flex-sub'>
						<text class='yhdzg_fd1_0_c1_c0_higd'>{{info.list.wtms?info.list.wtms:'无'}}</text>
					</view>
				</view>
				<template v-if=" info.list.file.length!=0">
					<view class='flex flex-wrap align-center'>
						<image v-for='(item,key0) in info.list.file' :key='key0'
							@tap.stop="multiImagePreview(item,info.list.file,'')" class='yhdzg_fd1_4_c0_higd'
							mode="aspectFill" :src='item'></image>
					</view>
				</template>

				<template v-for='(item,key0) in info.list.video'>
					<view class='flex flex-wrap align-center' v-if=" info.list.video.length!=0" :key='key0'>

						<!-- <video class='flex  yhdzg_fd1_5_c0_higd' :poster="item.thumb" :src="item.path" controls='true'
							x5-video-player-type="h5" :enable-progress-gesture='true' object-fit="fill"></video> -->
							<view class="yhdzg_fd1_5_c0_higd" style="position: relative;"  @tap.stop="mixinToPlayVideo(item.path)">
								<image class='flex  yhdzg_fd1_5_c0_higd' :src="item.thumb" mode="aspectFill"></image>
								<image style="position: absolute;width: 88rpx;height: 88rpx;left: 50%;top: 50%;margin-top: -44rpx;margin-left: -44rpx;z-index:9;"  :src='STATIC_URL+"247.png"' mode=""></image>
							</view>

					</view>
				</template>

			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局2flex布局开始-->
			<view class="flex flex-wrap align-center justify-center benben-flex-layout yhdzg_flex_2_higd"
				@tap.stop="handleJumpDiy" data-type="navigateTo"
				:data-url="`/pageyhpc/yhpc/yhzg/yhzg?id=${id}&title=${title}`">
				<button class='yhdzg_fd2_0_higd'>{{$t('整改')}}</button>
			</view>

			<!---flex布局2flex布局结束-->
			<!-- #ifdef MP-WEIXIN -->
			<view class="btn-fixed" @tap.stop="handleJumpDiy" data-type="navigateTo"
				:data-url="`/pageyhpc/yhpc/yhpcx/yhpcx?aid=${ids}&title=${title}`">
				详情
			</view>
			<!-- #endif -->

		</view>
	</page-body>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"info": {
					"list": {
						"user_real_name": "",
						"pf": "",
						"pcsj": "",
						"wtzt": "",
						"wtms": "",
						"video": [],
						"wtzt_name": "",
						"file": []
					},
					"zg_info": {
						"aid": "",
						"update_time": "",
						"zgyj": "",
						"user_real_name": "",
						"zg_video": []
					},
					"sh_info": {
						"aid": "",
						"shyj": "",
						"shbz": ""
					}
				},
				"id": "4",
				"title": "",
				"ids": ""
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			let {
				id,
				title,
				ids
			} = options
			if (id !== undefined) this.id = id
			if (title !== undefined) this.title = title
			if (ids !== undefined) this.ids = ids
			this.getxq74193f267551Func()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//查询问题审核详情-隐患排查
			async getxq74193f267551Func() {
				//请求方法
				//数据验证

				let datainfo = await this.$api.get(global.apiUrls.post674193f267551, {
					aid: this.id
				});

				if (datainfo.data.code != 1) {
					this.$message.info(datainfo.data.msg);
					return
				}
				let infoinfo = datainfo.data;
				this.info = infoinfo.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;

		.yhdzg_flex_2_higd {
			position: absolute;
			bottom: 0rpx;
			width: 100%;
			height: 200rpx;

			.yhdzg_fd2_0_higd {
				border-radius: 44rpx;
				width: 686rpx;
				line-height: 88rpx;
				font-size: 32rpx;
				background: #D32A29;
				color: #fff;
				height: 88rpx;
			}
		}

		.yhdzg_flex_1_higd {
			margin: 16rpx 0rpx 16rpx 0rpx;
			background: rgba(255, 255, 255, 1);
			background-size: 100% auto;
			padding: 28rpx 32rpx 36rpx 32rpx;

			.yhdzg_fd1_4_c0_higd {
				width: 156rpx;
				height: 156rpx;
				border-radius: 8rpx;
				margin: 0rpx 16rpx 16rpx 0rpx;
			}

			.yhdzg_fd1_5_c0_higd {
				width: 100%;
				height: 300rpx;
				border-radius: 10rpx 10rpx 10rpx 10rpx;
			}
		}

		.yhdzg_fd1_0_higd {
			line-height: 40rpx;
			color: rgba(153, 153, 153, 1);
			font-size: 28rpx;
			margin: 0rpx 0rpx 28rpx 0rpx;

			.yhdzg_fd1_0_c2_higd {
				margin: 0rpx 0rpx 0rpx auto;
				height: 40rpx;
				width: 96rpx;
				border-radius: 8rpx;
				border: 2px solid #FD574B;

				.yhdzg_fd1_0_c2_c0_higd {
					color: rgba(253, 87, 75, 1);
					font-size: 24rpx;
					width: 96rpx;
					text-align: center;
					line-height: 40rpx;
				}
			}
		}

		.yhdzg_fd1_0_c0_higd {
			width: 144rpx;
		}

		.yhdzg_fd1_0_c1_c0_higd {
			color: rgba(51, 51, 51, 1);
		}

		.yhdzg_flex_0_higd {
			width: 750rpx;
			height: 88rpx;
			overflow: hidden;
			z-index: 10;
			top: 0rpx;
			background: #fff;
			background-size: 100% auto !important;

			.yhdzg_fd0_0_higd {
				padding: 0rpx 32rpx 0rpx 32rpx;

				.yhdzg_fd0_0_c1_c0_higd {
					font-size: 36rpx;
					font-weight: 700;
					color: #333333;
					line-height: 50rpx;
				}
			}
		}

		.yhdzg_fd0_0_c0_higd {
			width: 120rpx;

			.yhdzg_fd0_0_c0_c0_higd {
				font-size: 36rpx;
				color: #333;
			}
		}

		.yhdzg_fd0_0_c2_c0_higd {
			font-size: 32rpx;
			color: rgba(211, 42, 41, 1);
		}
	}
</style>
